package ldh.im.fxbase.util;

import javafx.scene.Node;
import javafx.scene.layout.AnchorPane;

public class AnchorPaneUtil {

    public static void anchor(Node node, Double top, Double right, Double bottom, Double left) {
        if (top != null) AnchorPane.setTopAnchor(node, top);
        if (right != null) AnchorPane.setRightAnchor(node, right);
        if (bottom != null) AnchorPane.setBottomAnchor(node, bottom);
        if (left != null) AnchorPane.setLeftAnchor(node, left);

    }
}
